Add a temporary env var to enable hashes in filenames
authorAlex Crichton <alex@alexcrichton.com>
Fri, 19 Aug 2016 20:36:32 +0000 (13:36 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 19 Aug 2016 20:49:07 +0000 (13:49 -0700)
commit7e4043951bfee9ac2f44a888aae0c9324df29f58
tree8bd2591ed4e4b9b99f4af71b3386ffbe6a7272ae
parent994550428f79147863b6aa7053eca0064b8553bc
Add a temporary env var to enable hashes in filenames

For rustbuild we need the hashes to exist for all deps, even if they're path
deps, because we care about the actual file names. For example we don't want to
install /usr/lib/libstd.so!

This adds a "secret" environment variable, `__CARGO_DEFAULT_LIB_METADATA` which
re-enables the old behavior of just putting hashes in filenames.

Closes #3005
src/cargo/ops/cargo_rustc/context.rs